package com.caochenlei.observer.custom;

public class WeatherSubject extends Subject {
    private Weather weather;

    public Weather getWeather() {
        return weather;
    }

    public void setWeather(Weather weather) {
        this.weather = weather;
        setChanged();
        notifyObservers(weather);
    }
}